package com.nineclock.api.document;

import com.nineclock.common.entity.PageResult;
import com.nineclock.common.entity.Result;
import com.nineclock.document.dto.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import java.util.List;

@Api(value = "APP文件管理接口", tags = "文档服务", description = "文档管理")
public interface AppDocumentControllerApi {
    
    @ApiOperation(value = "查询当前目录下的 子文件夹及文件")
    public Result<DocumentDto> listFolderAndFile(Long parentFolderId);

    @ApiOperation(value = "新建文件夹")
    public Result insertFolder(DocFolderDto folderDto); //增加该接口方法

    @ApiOperation(value = "根据文档ID查询文档详情")
    public Result<DocFileDto> getFileByFileId(Long id);

    @ApiOperation(value = "根据文档ID分页查询文档协作者")
    public Result<PageResult<DocumentUserDTO>> pagingCollaborations(Long fileId, Long page , Long pageSize);

    @ApiOperation(value = "根据文件ID获取用户信息")
    public Result<List<DocUserCollaborationDTO>> pageUsers(Long fileId);
  	
}  